package 面向对象初级.封装.封装的实现;

public class PersonTest {
    public static void main(String[] args) {
        Person person = new Person();
        person.setName("张三");
        person.setAge(3);
        person.setMarry(true);
        System.out.println(person.getName());
        System.out.println(person.getAge());
        System.out.println(person.getMarry());
        person.toInfo();
    }
}
